<?php 
header("Content-Type:text/html;charset=utf-8");
include 'includes/init.php';
include_once 'includes/upload.class.php';

session_start();

$id=isset($_SESSION['id'])?$_SESSION['id']:'';
$nphone = isset($_SESSION['phone']) ? $_SESSION['phone'] : '';
$uesrname = isset($_SESSION['uesrname']) ? $_SESSION['uesrname'] : '';
// 查出所有已审批的信息
$sql = "SELECT
 DISTINCT 
	project,
	names,
	progress,
	createtime,
	code
FROM
	t_examine
WHERE
	mid = ".$id."
AND auditing = 0
AND progress = '归档人'
group by code";
// 归档人判断
if($uesrname == '归档人' || $_SESSION['rule_id'] == 5){
	$sql = "select DISTINCT project, names, progress, createtime ,code from t_examine  where auditing = 0 and progress = '归档人' group by code ";
}
$infoAll = $db_Obj->getall($sql);

include 'okprocess.html';
?>